<?php defined('MYLITS') ? '' : exit('No direct script access allowed'); ?>
<div class="sections">
    <section id="installations">
        <h1>Installations</h1>
        Please download following package :
        <ul>
            <li style="list-style: decimal"><a href="<?=BASE_URL?>downloads/file/app.zip">Base app</a></li>
            <li style="list-style: decimal"><a href="<?=BASE_URL?>downloads/file/engine.zip">Engine</a></li>
        </ul>
        <p>
            Extract <i>app.zip</i> in your php server directory. And also with <i>engine.zip</i> in wherever server directory. After the extractions, please take a look configuration file under <i>app/config/configuration.php</i>
        </p>
        <p class="note">
            You can use one engine code for multiple application. Regarding this feature We want to say a special thanks to <i>gt Framework</i> for the inspiration. 
        </p>
        <p>
            <span class="docs-image">
                <img src="<?= $base_url ?>assets/images/app.dir.content.jpg"/>
                <br/>
                <label>Example directory structure</label>
            </span>
        </p>
        <p>
            Example configuration file
        </p>
        <pre class="brush: php">
<span class="comments">
/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Arfan Fudyartanto D N &#60;arfan@mylits.com&#62; - http://engine.mylits.com
 */

#------------------------------- required --------------------------------------
</span>
$config['default_component']        = 'core.home';

<span class="comments">
/**
 * Give absolute path for engine dir configuration
 * example windows : 'E:/xampp/htdocs/mylits/dev/mylits.engine/v.1.0/engine
 * example linux   : '/home/user/public_html/engine'
 */
</span>
$config['engine_dir']               = 'E:/xampp/htdocs/mylits/dev/mylits.engine/v.1.0/engine';
$config['default_language']         = 'en';
<span class="comments">
#------------------------------- end required ----------------------------------
</span>
<span class="comments">
/**
 * Encryption key parameter also used for encryption user password so if you change this parameter you need also change user password hash in database
 */
</span>
$config['encryption_key']           = '345*&^$%^56547';

<span class="comments"># when true error reporting will be set to all, and will be hide all error when this parameter is false</span>
$config['development']              = true;

<span class="comments"># directory log address</span>
$config['logs']                     = 'E:/xampp/htdocs/mylits/dev/mylits.engine/v.1.0/app';

<span class="comments"># use template config when you build app without database
# if database configuration is exist, active template will be taken from database</span>
$config['template']                 = '';

<span class="comments">#------------------------------- database config --------------------------------------</span>
$config['db'][0]['host']              = 'localhost';
$config['db'][0]['user']              = 'root';
$config['db'][0]['pass']              = '';
$config['db'][0]['name']              = 'mylits_engine.v.1.0';
$config['db'][0]['prfx']              = 'mylits';
<span class="comments">
/**
 * For multiple database configuration, uncomment code bellow. You can use index 0, 1, 2, 3 ..
 */
# $config['db'][1]['host']            = 'localhost';
# $config['db'][1]['user']            = 'root';
# $config['db'][1]['pass']            = '';
# $config['db'][1]['name']            = 'mylits_main_site';
# $config['db'][1]['prfx']            = '';
#------------------------------- end database config ----------------------------------
</span>
        </pre>
    </section>
</div>